package chap6.task3;

import java.io.FileInputStream;
import java.io.FileOutputStream;

public class Task6_2_3 {
    public static void main(String[] args) throws Exception {
        FileInputStream a=new FileInputStream("C:\\Banana\\1.png");
        FileOutputStream b=new FileOutputStream("1.png");
        byte[] byt=new byte[1024];
        int len=0;
        while((len=a.read(byt))!=-1){
           b.write(byt,0,len);

        }
        a.close();
        b.close();
    }
}
